package operation;

import book.Book;
import book.Booklist;

public class Exit implements Canoperation {
    public void work(Booklist booklist) {
        System.out.println("退出系统");
        int sum = booklist.getBooksum();
        for (int i = 0; i < sum; i++) {
            booklist.setbook(i,null);
        }
        booklist.setBooksum(0);
        System.exit(0);
    }
}
